﻿using Autofac;
using King.Box.WebApi.Providers;
using King.Box.WebApi.Providers.Impl;
using Microsoft.Owin.Security.OAuth;

namespace King.Box.WebApi.Modules
{
    public class WebApiModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType<AuthService>().As<IAuthService>().SingleInstance();
            builder.RegisterType<OAuthServerProvider>().As<IOAuthAuthorizationServerProvider>().SingleInstance();
        }
    }
}
